package com.job.client.model.auth.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Value;

@Data
@TableName("tb_user")
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @TableId(value = "user_id",type = IdType.ASSIGN_UUID)
    private String userId;
    @TableField("username")
    private String username;
    @TableField("password")
    private String password;
    @TableField("phone")
    private String phone;
    @TableField("avatar_image")
    private String avatarImage;
    @TableField(value = "company_id")
    private String companyId;
    @TableField(value = "duties")
    private String duties;
    @TableField(value = "company_name")
    private String companyName;
    @TableField(value = "company_positions")
    private String companyPositions;
    @TableField(value = "authentication")
    private String authentication;
    @TableField("create_time")
    private String createTime;
    @TableField("update_time")
    private String updateTime;
    @TableLogic("is_delete")
    private Integer isDelete;
    @TableField(exist = false)
    private String confirmPassword;
    @TableField(exist = false)
    private String code;

    public User(String userId, String avatarImage) {
        this.userId = userId;
        this.avatarImage = avatarImage;
    }
}
